package com.coda.mapper;

import com.coda.pojo.DictationResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 默写结果
 */
@Mapper
public interface DictationResultsMapper {

    /**
     * 添加默写结果
     * @param dictationResult
     */
    void insert(DictationResult dictationResult);

    /**
     * 根据默写记录id获取对应所有单词的默写结果
     * @param sessionId
     * @return
     */
    List<DictationResult> getDictationResultBySessionId(@Param("id") Integer id, @Param("sessionId") Integer sessionId);
}
